<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>富扬数据看板</title>
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <link rel="stylesheet" href="/stylesheets/css/bootstrap.min.css">
  <link rel="stylesheet" href="/stylesheets/css/AdminLTE.min.css">
  <link rel="stylesheet" href="/stylesheets/skins/_all-skins.min.css">
  <style>
    .content-header>h1>.breadcrumb {
      background: transparent;
      margin-top: 0;
      margin-bottom: 0;
      font-size: 12px;
      padding: 7px 5px;
      border-radius: 2px;
      display: inline-block;
    }
  </style>
</head>
<body class="hold-transition skin-blue sidebar-mini">
<!-- Site wrapper -->
<div class="wrapper">

  <%- include("./public/header.ejs") %>

  <%- include("./public/aside.ejs") %>

  <div class="content-wrapper">
    <section class="content-header">
      <h1>
        修改个人密码
        <ol class="breadcrumb">
          <li><a href="/"><i class="glyphicon glyphicon-dashboard"></i>首页</a></li>
          <li class="active">修改个人密码</li>
        </ol>
      </h1>
    </section>

    <!-- Main content -->
    <section class="content">
      <div class="box">
        <div class="box-header with-border">
          <h3 class="box-title">
            修改个人密码
          </h3>
        </div>
        <div class="box-body">
          <form class="form-horizontal" method="post" action="/setpassword/set">
            <div class="box-body" style="height:178px">
              <!-- 如果有错误消息，显示它 -->
              <% if (messages && messages.error) { %>
                <div class="login-box-msg" style="color:red;"> <%= messages.error %> </div>
              <% } %>
              <div class="form-group">
                <label for="opw" class="col-sm-2 control-label">旧密码</label>
                <div class="col-sm-8">
                  <input type="text" class="form-control opw" id="opw" name="opw" placeholder="Old Password" required autocomplete="off">
                </div>
              </div>
              <div class="form-group">
                <label for="npw" class="col-sm-2 control-label">新密码</label>
                <div class="col-sm-8">
                  <input type="text" class="form-control npw" id="npw" name="npw" placeholder="New Password" required autocomplete="off">
                </div>
              </div>
            </div>
            <div class="box-footer">
              <button type="submit" class="btn btn-info pull-right">提交</button>
            </div>
          </form>
        </div>
      </div>
    </section>
  </div>

  <%- include("./public/footer.ejs") %>
</div>

<script src="/javascripts/jquery.min.js"></script>
<script src="/javascripts/bootstrap.min.js"></script>
<script src="/javascripts/adminlte.min.js"></script>
</body>
</html>
